package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class MessageSentBase{
	boolean[] modified=new boolean[8];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public MessageSentBase(){}
	public MessageSentBase(java.lang.Long messageId,java.lang.Long userId,java.lang.Long fromUserId,java.lang.Long toUserId,java.lang.String toUser,java.lang.String title,java.lang.String content,java.util.Date postTime){
		setMessageId(messageId);
		setUserId(userId);
		setFromUserId(fromUserId);
		setToUserId(toUserId);
		setToUser(toUser);
		setTitle(title);
		setContent(content);
		setPostTime(postTime);
	}
	public void setMessageId(java.lang.Long messageId){
		if(messageId!=null) {
			set("messageId",messageId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getMessageId(){
		return (java.lang.Long)get("messageId");
	}
	public void setUserId(java.lang.Long userId){
		if(userId!=null) {
			set("userId",userId);
			this.modified[1] =true;
		}
	}
	public java.lang.Long getUserId(){
		return (java.lang.Long)get("userId");
	}
	public void setFromUserId(java.lang.Long fromUserId){
		if(fromUserId!=null) {
			set("fromUserId",fromUserId);
			this.modified[2] =true;
		}
	}
	public java.lang.Long getFromUserId(){
		return (java.lang.Long)get("fromUserId");
	}
	public void setToUserId(java.lang.Long toUserId){
		if(toUserId!=null) {
			set("toUserId",toUserId);
			this.modified[3] =true;
		}
	}
	public java.lang.Long getToUserId(){
		return (java.lang.Long)get("toUserId");
	}
	public void setToUser(java.lang.String toUser){
		if(toUser!=null) {
			set("toUser",toUser);
			this.modified[4] =true;
		}
	}
	public java.lang.String getToUser(){
		return (java.lang.String)get("toUser");
	}
	public void setTitle(java.lang.String title){
		if(title!=null) {
			set("title",title);
			this.modified[5] =true;
		}
	}
	public java.lang.String getTitle(){
		return (java.lang.String)get("title");
	}
	public void setContent(java.lang.String content){
		if(content!=null) {
			set("content",content);
			this.modified[6] =true;
		}
	}
	public java.lang.String getContent(){
		return (java.lang.String)get("content");
	}
	public void setPostTime(java.util.Date postTime){
		if(postTime!=null) {
			set("postTime",postTime);
			this.modified[7] =true;
		}
	}
	public java.util.Date getPostTime(){
		return (java.util.Date)get("postTime");
	}
}
